package service;

import listboxlib.pageutils.PageBounds;
import listboxlib.pageutils.PageList;
import model.dto.ListQueryDTO;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * @author Administrator
 */
public class ListBoxImpl extends SqlSessionDaoSupport {
    public List<PageList<Object>> getDateList(ListQueryDTO queryDTO, PageBounds pageBounds) {
        Map<String, Object> params = new HashMap<>();
        params.put("queryDTO", queryDTO);
        return getSqlSession().selectList(queryDTO.getStatement(), params, pageBounds);
    }
}
